package com.emser.unc.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class MenuEvent extends GwtEvent<MenuEventHandler>{
	public static Type<MenuEventHandler> TYPE = new Type<MenuEventHandler>();
	private int type;
	
	public MenuEvent(int type){
		this.type = type;
	}
	@Override 
	public Type<MenuEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override 
	protected void dispatch(MenuEventHandler handler) {
	    handler.onChange(this);
	}
	
	public int getType() {
		return type;
	}
 

}
